|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.ElseIf
public class ElseIf
The ElseIf class represents the <elseif> VXML element.
It contains a list of actions for the VXML interpreter to execute if its
conditional expression evaluates to true. The list of actions
will be written to the VXML document in the order they were added.
For more information on the ElseIf class and its usage, see the JavaDoc of
the If class.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ElseIf(java.lang.String condition)
Creates a new instance of ElseIf with the specified
conditional expression and an empty list of actions. |
|
| Method Summary | |
|---|---|
void |
addAction(Action action)
Adds the action to this else-if. |
Action[] |
getActions()
Returns the list of actions in this else-if. |
java.lang.String |
getCondition()
Returns the conditional expression that must evaluate to true. |
void |
removeAction(Action action)
Removes the action from this else-if. |
void |
setCondition(java.lang.String condition)
Sets the conditional expression that must evaluate to true. |
protected void |
writeActions(org.xml.sax.ContentHandler outputHandler)
Write the actions in this condition to the specified content handler. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this condition to the supplied set. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ElseIf(java.lang.String condition)
ElseIf with the specified
conditional expression and an empty list of actions.
condition - An expression that evaluates to a Boolean.
java.lang.IllegalArgumentException - If the supplied condition is empty.
java.lang.NullPointerException - If the supplied condition is null.| Method Detail |
|---|
public java.lang.String getCondition()
public Action[] getActions()
public void setCondition(java.lang.String condition)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
condition - The conditional expression.
java.lang.IllegalArgumentException - If the supplied condition is empty.
java.lang.NullPointerException - If the supplied condition is null.
public void addAction(Action action)
throws java.lang.NullPointerException
action - The action to add.
java.lang.NullPointerException - If the supplied action is null.
public void removeAction(Action action)
throws java.lang.NullPointerException
action - The action to remove.
java.lang.NullPointerException - If the supplied action is null.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeActions(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the actions fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||